Data Merging

Related example macros: Demo-Datasource, Demo-ReadCSV, Script: Datasource-2-web.vbs, CSV-2-web.vbs, Database-2-web.vbs

If you want to submit different information to the same Web page (i. e. using the same Internet Macro) you can use the DATA MERGING functions. An example would be if you want to submit an online ad to different web sites.

The data source can in two different formats: Either a text file with a list of variables and their values of the form "variable_name=value" or as a comma separated text file (CSV format). A text file in CSV format can be generated by Microsoft Excel and many other applications.

As a rule of thumb the "list of variables" format is recommend if you have may different variables but only one or a few value for each variable (for example your detailed address data that you use to fill out online forms). The CSV format is most appropriate for use with a few variables with may different values (for example a long list of CD's that you want to submit to an auction web site).

Tip: Data merging and command line:
Specify the data source using the "-datasource" command line parameter:
iimpro -macro data-merge-example -datasource dinner.txt